stable_expm1 Function

public pure elemental function stable_expm1(x) result(rst)

Computes exp(x) - 1 without subtractive cancellation near zero.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: x

Exponent argument.

Return Value real(kind=real64)

Difference; overflow gives +infinity and NaN inputs propagate.